<?php
Vendor('Jssdk.JSSDK');
$jssdk = new \JSSDK("wx331ed6d859b117cb","dbada5df9c35c886582d7a0d05fe3a2c");
$signPackage = $jssdk->GetSignPackage();
?>
<meta charset="utf-8" />
<title>{:C('WEB_SITE_TITLE')}</title>
<meta name = "viewport" content = "width=device-width, minimum-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="__CSS__/lib/swiper/swiper.min.css"/>
<link rel="stylesheet" type="text/css" href="__CSS__/lib/font-awesome/font-awesome.min.css"/>
<link rel="stylesheet" type="text/css" href="__CSS__/style.css"/>
<script src="__JS__/lib/jQuery/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src=" https://res.wx.qq.com/open/js/jweixin-1.0.0.js" charset="utf-8"></script>
<script src="__JS__/lib/swiper/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    $(function(){
        wx.config({
            debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
            appId: '<?php echo $signPackage["appId"];?>',
            timestamp: <?php echo $signPackage["timestamp"];?>,
            nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']// 必填，需要使用的JS接口列表，所有JS接口列表见附录2
        });
    });
</script>
